package com.appkubes.portal.admin.application.system.app;

import com.appkubes.common.Response;
import com.appkubes.portal.core.entity.PortalGlobalApp;
import com.appkubes.portal.core.service.BasePortalGlobalAppService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@Api(tags = "平台应用")
@RestController
@RequestMapping("/system/app")
public class SystemAppController {

    @Resource
    BasePortalGlobalAppService appService;

    @ApiOperation("应用列表")
    @GetMapping("/get")
    public Response<List<PortalGlobalApp>> get() {
        return Response.success(appService.list());
    }
}
